package com.zmxstudy.rbac.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zmxstudy.rbac.entity.Brand;
import com.zmxstudy.rbac.service.BrandService;
import com.zmxstudy.rbac.mapper.BrandMapper;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
* @author tianyu
* @description 针对表【brand】的数据库操作Service实现
* @createDate 2024-06-05 11:34:25
*/
@Service
public class BrandServiceImpl extends ServiceImpl<BrandMapper, Brand>
    implements BrandService{

    @Override
    public ArrayList<Brand> getAllBrand() {
        return baseMapper.selectAllBrand();
    }

    @Override
    public Brand getBrandById(Integer id) {
        return baseMapper.selectBrandById(id);
    }
}




